#pragma once
#include<easyx.h>
#include<windef.h>

const int FrameWidth = 800;
const int FrameHeight = 600;
const int BLANK_SIZE = 10;

const int TETRIS_ROWS = 18;
const int TETRIS_COLS = 12;
const int CELL_SIZE = (FrameHeight - BLANK_SIZE * 2) / TETRIS_ROWS;
const int NO_BLOCK = 114514;
const int HAVE_BLOCK = 1919810;

const COLORREF colors[10] = {RED,BLUE,YELLOW,GREEN};

const int BlockGroupStyles[7][4][3] = {
	{
		{-1,0,0},
		{0,0,0},
		{0,1,0},
		{1,1,0}
	},
	{
		{1,0,1},
		{0,0,1},
		{0,1,1},
		{-1,1,1}
	},
	{
		{-1,0,2},
		{0,0,2},
		{-1,1,2},
		{0,1,2}
	},
	{
		{-1,0,3},
		{-1,1,3},
		{-1,2,3},
		{0,2,3}
	},
	{
		{0,0,0},
		{0,1,0},
		{0,2,0},
		{-1,2,0}
	},
	{
		{0,1,1},
		{1,1,1},
		{2,1,1},
		{3,1,1}
	},
	{
		{0,0,2},
		{-1,1,2},
		{0,1,2},
		{1,1,2}
	}
};